# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=cksfv
pkgver=1.3.15
pkgrel=3
pkgdesc="Simple File Verification"
url="http://zakalwe.fi/~shd/foss/cksfv"
arch="all"
checkdepends="bash"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
source="http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	install -cD src/cksfv "$pkgdir"/usr/bin/cksfv
	install -cD cksfv.1 "$pkgdir"/usr/share/man/man1/cksfv.1
}

sha512sums="a0b5286e0dce610e8b482a55cf8af38f8f8256e175435b6f2518c6566ea844c3cf2981f96c7600c7eb9b23b35cf19f1b55f540ba0f73f1267e4593e744858d43  cksfv-1.3.15.tar.bz2"
